package com.example.itshome.network;

import android.app.Activity;
import android.widget.Toast;

import java.io.File;

public class ChangeHeaderRequest extends AbstractNetworkRequest{

    private File uploadFile;

    public ChangeHeaderRequest setUploadFile(File uploadFile) {
        this.uploadFile = uploadFile;
        return this;
    }

    public ChangeHeaderRequest(Activity activity) {
        super(activity);
    }

    @Override
    protected String getPathAndParams() {
        return "";
    }

    @Override
    protected void handleResult(String result) {
        setHandleResultRunnable(new Runnable() {
            @Override
            public void run() {
                Toast.makeText(activity,"修改成功",Toast.LENGTH_SHORT).show();
            }
        });
    }
}
